package com.mgy.im.standard;

import com.mgy.im.pojo.Session;

/**
 * xxx
 *
 * @author maguoyong
 * @date 2020/6/14
 */
public interface WebSocketHandler {

    /**
     * 连接已建立
     */
    void afterConnectionEstablished(Session session) throws Exception;

    void handleMessage(Session session, Object obj) throws Exception;

    void handleError(Session session, Throwable throwable) throws Exception;

    void afterConnectionClosed(Session session, String reason) throws Exception;

}
